<?php $this->load->view('config/header_home');?>
<h2>Form <?php echo $mode?> surat</h2>
<div class="line-separtor"></div>
<br/>	
	<a href="<?php echo site_url()?>surat" class="btn btn-primary"> Kembali ke daftar </a>
<br/>
<br/>
<form method="post" action="<?php echo site_url() ?>surat/<?php echo $action; ?>" class="form-horizontal">
	<input type="hidden" name="id_surat" value="<?php echo @$detail[0]['id_surat']?>">
	<div class="control-group">
		<label class="control-label" for="baris_pertama">Baris pertama surat</label>
		<div class="controls">
		  <input type="text" class="span5" name="baris_pertama" value="<?php echo $setting1 ?>" readonly="readonly">
		</div>
	</div>
	<div class="control-group">
		<label class="control-label" for="baris_kedua">Baris kedua surat</label>
		<div class="controls">
		  <input type="text" class="span5" name="baris_kedua" value="<?php echo $setting2 ?>" readonly="readonly">
		</div>
	</div>
	<div class="control-group">
		<label class="control-label" for="id_sektor">Sektor</label>
		<div class="controls">
			<select name="id_sektor">
				<option value="">-</option>
				<?php if (@$set_sektor):?>
					<?php foreach ($set_sektor as $row):?>
						<?php if ($row['id'] == @$detail[0]['id_sektor']):?>
							<?php $selected =  'selected="selected"' ?>
						<?php else :?>
							<?php $selected =  '' ?>
						<?php endif;?>
						<option value="<?php echo $row['id'] ?>" <?php echo $selected ?> ><?php echo $row['name'] ?></option>
					<?php endforeach?>
				<?php endif?>
			</select>
		</div>
	</div>
	<div class="control-group">
		<label class="control-label" for="alamat_surat">Alamat</label>
		<div class="controls">
		  <input type="text" class="span8" name="alamat_surat" value="<?php echo @$detail[0]['alamat_surat']?>" >
		</div>
	</div>
	<div class="form-actions">
	  <input type="submit" name="submit" value="Simpan" class="btn btn-primary" />
	  <a href="<?php echo site_url()?>surat" class="btn">Batal</a>
	</div>
</form>
<?php $this->load->view('config/footer_home');?>